import { configureStore } from '@reduxjs/toolkit';
import loginUser from '@/store/loginUser'

const store = configureStore({
  reducer: {
    // 存状态
    loginUser,
  },
});

// 用于类型推理和提示
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;

export default store;
